// GameManager.ts 或专门的注册文件
import { _decorator, Component, Node } from 'cc';
import { EffectClassUtil } from '../Card/EffectClassUtil';
import { DoubleEffect } from '../Effect/DoubleEffect';
import { ChipAddHundredEffect } from '../Effect/ChipAddHundredEffect';
import { SkylandEffect } from '../Effect/SkylandEffect';
const { ccclass, property } = _decorator;

@ccclass('EffectRegistry')
export class EffectRegistry extends Component {
    onLoad() {
        this.registerAllEffects();
    }
    private registerAllEffects(): void {
        EffectClassUtil.instance.register("DoubleEffect",DoubleEffect.instance);
        EffectClassUtil.instance.register("ChipAddHundredEffect",ChipAddHundredEffect.instance);
        EffectClassUtil.instance.register("SkylandEffect",SkylandEffect.instance);
        // 注册所有效果类

        console.log("所有效果类注册完成");
    }
}

